home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Networking / OTFindSerialPorts1.0d1 / Read Me About OTFindSerialPorts < prev   
Encoding:
Text File  |  1997-09-02  |  1.9 KB  |  47 lines  |  [TEXT/ttxt]

  1. Read Me About OTFindSerialPorts
  2.  
  3. 1.0d1
  4.  
  5. This sample demonstrates how to use the Open Transport API to find all the serial ports available to Open Transport programs.  The code from this sample is featured in the latest release (v1.2) of the book “Inside Macintosh: Open Transport”.
  6.  
  7. Packing List
  8.  
  9. The package contains the following items items: 
  10.  
  11. • OTFindSerialPorts-PPC.µ — A project to build the PPC version. 
  12. • OTFindSerialPorts-PPC — A compiled version of the above.
  13. • OTFindSerialPorts-68K.µ — A project to build the 68K version.
  14. • OTFindSerialPorts-68K — A compiled version of the above.
  15.  
  16. • OTFindSerialPorts.c — Source code common to both projects.
  17.  
  18. Sample Requirements
  19.  
  20. I tested this code with OT 1.2 running under Mac OS 8 on both 68K and PPC.  The code should run just fine with OT 1.1.1 or newer.  I do not support this code on OT versions prior to 1.1.1.
  21.  
  22. Because OT does not provide mixed mode glue for all the API routines in this sample (specificall OTGetUserPortNameFromPortRef), you should make sure to run the 68K version only on 68K machines.
  23.  
  24. Running the Sample
  25.  
  26. To run the sample, simply double click the application and read the output on the console window.
  27.  
  28. Building the Sample
  29.  
  30. The sample was built using the Metrowerks CodeWarrior 11 environment and the Open Transport 1.1.1 SDK interfaces and libraries.
  31.  
  32. To rebuild the sample, first open the project and change the “LatestInterfaces” and “LatestLibraries” access paths to point to the interfaces and libraries from the OT 1.1.1 (or newer) SDK.  Then choose Make from the Project menu.
  33.  
  34. Credits and Version History
  35.  
  36. If you find any problems with this sample, mail <DevSupport@apple.com> with “Attn: Quinn” as the first line of your mail and I’ll try to fix them up.
  37.  
  38. Version 1.0d1 is the first release.
  39.  
  40. Share and Enjoy
  41.  
  42. Quinn “The Eskimo!”
  43. Apple Developer Technical Support
  44. Networking, Communications, Hardware
  45.  
  46. 2 Sep 1997
  47.